package com.learn.abstractfactory;

public class CreateHuman {
    public static void main(String[] args) {
        HumanFactory maleFactory = new MaleFactory();
        HumanFactory femaleFactory = new FemaleFactory();

        Human yellowMale = maleFactory.createYellowHuman();
        System.out.println("create yellow male");
        yellowMale.getColor();
        yellowMale.talk();
        yellowMale.sex();

        Human yellowFemale = femaleFactory.createYellowHuman();
        System.out.println("create yellow female");
        yellowFemale.getColor();
        yellowFemale.talk();
        yellowFemale.sex();
    }
}
